<?php
class Zendvn_Config{
	
	protected $_config;
	
	public function __construct(){
		$filename = APPLICATION_PATH . '/configs/cms.ini';
		$config = new Zend_Config_Ini($filename,'site');
		
		$this->_config = $config;
	}
	
	public function getSite($path = null){
		if($path == null){
			$value = $this->_config;
		}else{
			$value = $this->_config->$path;
		}		
		return $value;
	}
}